import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async index() {
    const { ctx } = this;
    ctx.body = await ctx.service.acme.generatePEM([ 'proxy2.zhuziyu.cn' ]);
  }

  async arc() {
    const { service } = this;

    this.ctx.body = await service.test.test();
  }
}
